import request from '@/utils/request'
// 获取待闸船舶列表
export function getShipList(params) {
  return request({
    url: `/yxdd/register/waitGatePageList`,
    method: 'post',
    data:params
  })
}
export function getShipHxCountList(params) {
  return request({
    url: `/yxdd/register/getShipHxCountList`,
    method: 'post',
    data:params
  })
}

///待闸船舶 +  plus api 关注船闸设置
/**
 *
 * @param data :{
	"czss": [
		{
			"czsid": 0,

			"px": 0,
			"yhid": 0
		}
	]
}
 * @returns {AxiosPromise}
 */
export function saveGzcz(data) {
  return request({
    url: `/yxdd/dzcbcx/saveGzcz`,
    method: 'post',
    data
  })
}

/**
data : { yhid}
* @returns {AxiosPromise}
*/
export function getGzcz(data) {
  return request({
    url: `/yxdd/dzcbcx/getGzCzs`,
    method: 'post',
    data
  })
}

/**
 * 获取待闸船舶航向统计列表 多船闸版
 * @param data
 * @returns {AxiosPromise}
 */
export function  getWaitedData(data){
  return request({
    url:'/yxdd/dzcbcx/getCountList',
    method:'post',
    data
  })
}

